package study.java.jdk.jdk8._1_stream.intermediate;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

import java.util.Arrays;
import java.util.List;

@Slf4j
public class peek_Test {

    List<String> src = Arrays.asList("p03_", "b123");

    @Test
    public void test1() {
        src.stream()
//                .filter(e -> e.length() > 2)
                .peek(e -> {
                    log.info(e);
                }).forEach(log::info);
    }
}
